export default {
    setUser(item) {
        localStorage.setItem('user_key', JSON.stringify(item))
    },
    getUser() {
        return JSON.parse(localStorage.getItem('user_key') || '{}')
    },
    removeUser() {
        localStorage.removeItem('user_key')
    },
    setToken(item) {
        localStorage.setItem('token', JSON.stringify(item))
    },
    getToken() {
        return JSON.parse(localStorage.getItem('token') || '{}')
    },
    removeToken() {
        localStorage.removeItem('token')
    },

}